import request from "@/utils/request.js"
const FileById = request.FileById;


const getConversations = ()=>{
	return request.get('/Conversation/GetConversations')
}
const getAvatarFile = (userId)=>{
	return request.get('/User/GetAvatarFileByUserId?userId='+userId)
}

const getMessageList = (conversastionId)=>{
	return request.get('/Message/GetByConversationId?conversationId='+conversastionId)
}

export default{
	getMessageList,
	getAvatarFile,
	getConversations,
	FileById
}